The replace() function expects two parameters, likely the third one
was ignored. Use replaceAll() to replace all the occurrences, not
just the first one.
Fixes: 007b6ca2e ("environment: Add convenience method for implicit animations")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4084>
const {promise, callback} = _makeEaseCallback(params, cleanup);
// cancel overwritten transitions
- const animatedProps = Object.keys(params).map(p => p.replace('_', '-', 'g'));
+ const animatedProps = Object.keys(params).map(p => p.replaceAll('_', '-'));
animatedProps.forEach(p => actor.remove_transition(p));
if (easingDuration > 0 || !isReversed)